﻿<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:Avanade="urn:Avanade" xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'>
  <xsl:template match="/">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="Webpart VIDEO">
      <xsl:for-each select="xml/rs:data/z:row">
        <xsl:if test="normalize-space(//EditFormURL) != ''">
          <tr>
            <td class="ms-addnew" style="background-color:#ffffff;width:100%;vertical-align:top;height:0%;padding:10px;font-size:10px;">
              <![CDATA[<img alt="" src="_layouts/images/rect.gif" />&nbsp;<a class="ms-addnew" href="]]><xsl:value-of select="//EditFormURL" /><![CDATA[">Modifier cette annonce</a>]]>
            </td>
          </tr>
        </xsl:if>
        <tr>
          <td style="background-color:#ffffff;width:100%;vertical-align:top;padding-top:10px;font-size:10px;padding-left:20px;padding-right:20px">
            <span style="text-transform:uppercase;font-family:arial;font-size:10pt;font-weight:bold;color:#4f4f4f">
              <xsl:value-of select="current()/@ows_Surtitre" />
            </span>
            <br/>
            <br/>
            <span style="font-family:Arial;font-size:14pt;color:#f21e8c">
              <xsl:value-of select="current()/@ows_Title" />
            </span>
            <br/>
            <br/>
            <div style="clear:both;vertical-align:top">
              <xsl:if test="normalize-space(translate(current()/@ows_Photo, ',', '')) != ''">
                <div style="float:left;padding-right:10px">
                  <img style="border: solid 1px #fce4ee;">
                    <xsl:attribute name="src">
                      <xsl:value-of select="Avanade:FormatLink(current()/@ows_Photo)" />
                    </xsl:attribute>
                  </img>
                </div>
              </xsl:if>
                <div style="font-family:Arial;font-size:10pt;font-weight:bold;color:#4f4f4f;">
                  <xsl:value-of select="current()/@ows_Chapeau" />
                </div>
                <br/>
				<xsl:if test="/xml/ImageDroite01 or /xml/ImageDroite02 or /xml/ImageDroite03 or /xml/ImageDroite04 or /xml/ImageDroite05">
					<table width="100%" align="center">
						<tr>
							<td width="80%" valign="top">
								<div style="font-family:Arial;font-size:10pt;color:#4f4f4f">
								  <xsl:value-of select="current()/@ows_Body" />
								</div>
							</td>
							<td width="20%" valign="top">
								<table width="100%" align="center">
									<tr>
										<xsl:if test="/xml/ImageDroite01">
											<td>
												<img border="0" src="{/xml/ImageDroite01}"/>
											</td>
										</xsl:if>
									</tr>
									<tr>
										<xsl:if test="/xml/ImageDroite02">
											<td>
												<img border="0" src="{/xml/ImageDroite02}"/>
											</td>
										</xsl:if>
									</tr>
									<tr>
										<xsl:if test="/xml/ImageDroite03">
											<td>
												<img border="0" src="{/xml/ImageDroite03}"/>
											</td>
										</xsl:if>
									</tr>
									<tr>
										<xsl:if test="/xml/ImageDroite04">
											<td>
												<img border="0" src="{/xml/ImageDroite04}"/>
											</td>
										</xsl:if>
									</tr>
									<tr>
										<xsl:if test="/xml/ImageDroite05">
											<td>
												<img border="0" src="{/xml/ImageDroite05}"/>
											</td>
										</xsl:if>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</xsl:if>
				<xsl:if test="not(/xml/ImageDroite01 or /xml/ImageDroite02 or /xml/ImageDroite03 or /xml/ImageDroite04 or /xml/ImageDroite05)">
					<div style="font-family:Arial;font-size:10pt;color:#4f4f4f">
					  <xsl:value-of select="current()/@ows_Body" />
					</div>
				</xsl:if>
				<xsl:if test="/xml/ImageHaut01 or /xml/ImageHaut02 or /xml/ImageHaut03 or /xml/ImageHaut04">
				<table cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<table width="100%" align="center" cellspacing="1px" cellpadding="1px">
								<tr>
									<xsl:if test="/xml/ImageHaut01">
										<td>
											<img border="0" src="{/xml/ImageHaut01}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageHaut02">
										<td>
											<img border="0" src="{/xml/ImageHaut02}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageHaut03">
										<td>
											<img border="0" src="{/xml/ImageHaut03}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageHaut04">
										<td>
											<img border="0" src="{/xml/ImageHaut04}"/>
										</td>
									</xsl:if>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</xsl:if>
				<xsl:if test="/xml/ImageBas01 or /xml/ImageBas02 or /xml/ImageBas03 or /xml/ImageBas04">
				<table cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<table width="100%" align="center" cellspacing="1px" cellpadding="1px">
								<tr>
									<xsl:if test="/xml/ImageBas01">
										<td>
											<img border="0" src="{/xml/ImageBas01}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageBas02">
										<td>
											<img border="0" src="{/xml/ImageBas02}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageBas03">
										<td>
											<img border="0" src="{/xml/ImageBas03}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageBas04">
										<td>
											<img border="0" src="{/xml/ImageBas04}"/>
										</td>
									</xsl:if>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</xsl:if>
				<xsl:if test="/xml/ImageBas11 or /xml/ImageBas12 or /xml/ImageBas13 or /xml/ImageBas14">
				<table cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<table width="100%" align="center" cellspacing="1px" cellpadding="1px">
								<tr>
									<xsl:if test="/xml/ImageBas11">
										<td>
											<img border="0" src="{/xml/ImageBas11}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageBas12">
										<td>
											<img border="0" src="{/xml/ImageBas12}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageBas13">
										<td>
											<img border="0" src="{/xml/ImageBas13}"/>
										</td>
									</xsl:if>
									<xsl:if test="/xml/ImageBas14">
										<td>
											<img border="0" src="{/xml/ImageBas14}"/>
										</td>
									</xsl:if>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</xsl:if>
            </div>
            <br/>
            <br/>
            <br/>
            <xsl:if test="Avanade:GetMediaType(current()/@ows_Media) = 'video'">
            <div id="video_auto_6Container" style="align:center">You need the Flash Player version 8.0.0.0 or higher and a JavaScript enabled browser to view this site</div>
            <script type="text/javascript">
              createPlayer('<xsl:value-of select="Avanade:FormatLink(current()/@ows_Media)" />');
            </script>
            </xsl:if>
            <xsl:if test="Avanade:GetMediaType(current()/@ows_Media) = 'picture'">
              <img style="border:solid 1px #fce4ee;">
                <xsl:attribute name="src">
                  <xsl:value-of select="Avanade:FormatLink(current()/@ows_Media)" />
                </xsl:attribute>
              </img>
            </xsl:if>
            <xsl:if test="current()/@ows_ProgId = '78;#'">
				<div WebPartID="1be32ca0-8723-4641-b507-d7cf2db237f4" HasPers="false" id="WebPartWPQ2" class="ms-WPBody" allowDelete="false" style="width:1000px;height:710px;overflow:hidden;" >
					<iframe title="Show Me What You Got" frameBorder="0" id="MSOPageViewerWebPart_WebPartWPQ2" name="MSOPageViewerWebPart_WebPartWPQ2" width="100%" height="100%" src="http://crea.vente-privee.com/SMWUG/index_vplink.php" ddf_src="http://crea.vente-privee.com/SMWUG/S01E03/index_vplink.html">
						<div class="UserGeneric">Le navigateur actuel ne prend pas en charge les pages qui contiennent l&#39;élément IFRAME. Pour utiliser ce composant WebPart, vous devez avoir recours à un navigateur qui prend en charge cet élément, tel que Microsoft Internet Explorer version 5 ou ultérieure.</div>
					</iframe>
				</div>
            </xsl:if>
          </td>
        </tr>
      </xsl:for-each>
    </table>

  </xsl:template>
</xsl:stylesheet>